package com.jamie.jdk8.lambda.cart;

/**
 * 下单商品信息对象
 * @author jamie
 */
public class Sku {

    /** 编号 */
    private Integer skuId;

    /** 商品名称 */
    private String skuName;

    /** 商品单价 */
    private Double skuPrice;

    /** 购买个数 */
    private Integer totalNum;

    /** 总价 */
    private Double totalPrice;

    /** 商品类型 */
    private Enum<SkuCategoryEnum> skuCategory;

    public Sku() {}

    public Sku(Integer skuId, String skuName, Double skuPrice, Integer totalNum, Double totalPrice, Enum<SkuCategoryEnum> skuCategory) {
        this.skuId = skuId;
        this.skuName = skuName;
        this.skuPrice = skuPrice;
        this.totalNum = totalNum;
        this.totalPrice = totalPrice;
        this.skuCategory = skuCategory;
    }

    public Integer getSkuId() {
        return skuId;
    }

    public void setSkuId(Integer skuId) {
        this.skuId = skuId;
    }

    public String getSkuName() {
        return skuName;
    }

    public void setSkuName(String skuName) {
        this.skuName = skuName;
    }

    public Double getSkuPrice() {
        return skuPrice;
    }

    public void setSkuPrice(Double skuPrice) {
        this.skuPrice = skuPrice;
    }

    public Integer getTotalNum() {
        return totalNum;
    }

    public void setTotalNum(Integer totalNum) {
        this.totalNum = totalNum;
    }

    public Double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Double totalPrice) {
        this.totalPrice = totalPrice;
    }

    public Enum<SkuCategoryEnum> getSkuCategory() {
        return skuCategory;
    }

    public void setSkuCategory(Enum<SkuCategoryEnum> skuCategory) {
        this.skuCategory = skuCategory;
    }

    @Override
    public String toString() {
        return "Sku{"
                + "skuId="
                + skuId
                + ", skuName='"
                + skuName
                + '\''
                + ", skuPrice="
                + skuPrice
                + ", totalNum="
                + totalNum
                + ", totalPrice="
                + totalPrice
                + ", skuCategory="
                + skuCategory
                + '}';
    }

}
